﻿; (function ($, window, document, undefined) {
    var myApp = window.myApp;
    var controller = myApp.controllers.controller;
    
    myApp.controllers.productsController = mvc.define(function () {
        var ds = mvc.resolve(myApp.dataService);

        return {
            index: function () {
                var model = ds.products;

                return this.view(model);
            },
            edit: function (model) {
                return this.view(model);
            }
        };
    }, controller);
})(jQuery, window, document);
